package person;

import java.io.Serializable;

public class Admin extends PersonInfo implements Serializable {
	

	/**
	 * 
	 */
	private static final long serialVersionUID = 2L;
	private int expCount = -1;
	private String job = "";
	
	public Admin (PersonInfo info){
		super.setFirstName(info.getFirstName());
		super.setSecondName(info.getSecondName());
		super.setPlaceOfBirth(info.getPlaceOfBirth());
		super.birth=info.getBirth();
	}
	public Admin (){}
	
	public void setJob (String input){
		job = input;
	}
 	public void setExpCount (int input){
		expCount = input;
	}
	public int getExpCount (){
		if (expCount == -1){
			System.out.println("Experiense not set, please set.");
			return -1;
		}
		return expCount;
	}
	public String getJob (){
		if (job.equals("")){
			return " not set, please set job.";
		}
		return job;
	}
	
	
	
}
